home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
PROGRAM
/
LDB171.ARJ
/
EXAMP702.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1992-05-12
|
371b
|
18 lines
// examp702.cpp - link with mutual.obj and binder.obj
#include "mutual.hpp"
#define ID_test 5
char * test(char * s1, char *s2)
{ cout << s1; return s2; }
main() {
RegisterFunction(ID_test,test);
cout <<(*ID2fnC(char *(*)(char *, char *),
fnC2ID(test)))
("\nGoodbye persistence headaches!\n",
"Hello streamable functions!\n");
return 0;
}